package com.league.zjxn.app

import android.content.Context
import androidx.multidex.MultiDex
import com.module.lemlin.http.HttpServiceFactory
import com.module.lemlin.owner.OwnerApplication
import rxhttp.RxHttpPlugins

class ZJXNApplication : OwnerApplication() {

    override fun attachBaseContext(base: Context?) {
        super.attachBaseContext(base)
        //初始dex
        MultiDex.install(base)
    }

    override fun onCreate() {
        super.onCreate()

        RxHttpPlugins.init(HttpServiceFactory.client().build())
//            .setOnParamAssembly {
//                it.addHeader("token", SPSConstance.token)
//            }
            .setDebug(true)
    }

}